<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%@ page import="com.lmpop.trade.ts_category.*" %>
<%@ page import="com.lmpop.trade.tb_commpara.Tb_commparaInfo" %>
<jsp:useBean id="randomId" class="com.lmpop.frame.util.RandomID" scope="page" /> 
<%
	String resume_id = randomId.GenTradeId();

	Tb_commparaInfo tb_commparaInfo = new Tb_commparaInfo(); 
	String cert_type = tb_commparaInfo.getSelectItem("45",""); 
	String political = tb_commparaInfo.getSelectItem("46",""); 
	String q_work_kind = tb_commparaInfo.getRadioItemNo("49","");
	String salary = tb_commparaInfo.getSelectItem("42","1");
	String work_date = tb_commparaInfo.getSelectItem("47","");
	String posts = tb_commparaInfo.getRadioItem("48","");
	String degree = tb_commparaInfo.getRadioItemNo("44",""); 

	Ts_categoryInfo ts_categoryInfo = new Ts_categoryInfo();
    String select = ts_categoryInfo.getSelCatByTLevel("6", "1");
	String q_work_career = ts_categoryInfo.getSelCatByTLevel("9", "1");

	String cust_id="",publish_user_id="";
	if(session.getAttribute("session_cust_id")!=null){
		cust_id  = session.getAttribute("session_cust_id").toString();
	}
	if(session.getAttribute("session_user_id")!=null){
		publish_user_id  = session.getAttribute("session_user_id").toString();
	}
%>
<html>
  <head>
    <title>发布简历</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/engine.js'></script>
	<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/util.js'></script>
	<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/Ts_categoryInfo.js'></script> 
	<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/Ts_areaInfo.js'></script>
	<script language="javascript" type="text/javascript" src="/program/plugins/calendar/WdatePicker.js"></script>
	<script type="text/javascript" src="biz.js"></script>
</head>

<body>
	<h1>发布简历</h1>
	
	
	
	<form action="/doTradeReg.do" method="post" name="addForm">
	
	<table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">
		

		<tr>
			<td  colspan="4">
		   &nbsp;&nbsp;<img src="/program/admin/images/infotip.gif" border="0">&nbsp;&nbsp;
		   <span style="font-size:14px;font-weight:bold;">个人信息（<font color="red">*</font>为必填项）</span>			
		   </td>
		</tr>

		<tr>
			<td align="right" width="20%">
				 个人相片:
			</td>
			<td colspan="3">
				  <jsp:include page="/program/inc/uploadImgInc.jsp">
					<jsp:param name="attach_root_id" value="<%=resume_id%>" />
					<jsp:param name="img_type" value="1" />
				  </jsp:include>
			 </td>
		</tr>

		
		<tr>
			<td align="right" width="20%">
				 简历标题<font color="red">*</font>
			</td>
			<td colspan="3">
				  <input type="text" name="resume_title" id="resume_title" size="62" maxlength="50" />
			 </td>
		</tr>

		<tr>
		  <td align="right" width="20%">姓&nbsp;&nbsp;&nbsp;&nbsp;名<font color="red">*</font></td>
		  <td width="28%">
			 <input type="text" name="resume_name" id="resume_name" size="30" maxlength="10" />
		  </td>
		  <td width="12%" align="right">性&nbsp;&nbsp;&nbsp;&nbsp;别<font color="red">*</font></td>
		  <td width="50%">
			 <select name="sex" id="sex">
				<option value="0">男</option>
				<option value="1">女</option>
			 </select>
		  </td>
		</tr>

		<tr>
		  <td align="right" width="20%">出生日期<font color="red">*</font></td>	   
		  <td width="28%">
			<input type="text" class="Wdate" name="birth" id="birth" onfocus="WdatePicker({dateFmt:'yyyy年M月',minDate:'1900-1',maxDate:'2010-12'})"/>
			 
		  </td>
		  <td width="12%" align="right">工作年限<font color="red">*</font></td>
		  <td width="50%">
			 <select name="work_date" id="work_date">
				<%=work_date%>
			 </select>	  
		  </td>
		</tr>
		
		<tr>
		  <td align="right" width="20%">婚姻状况<font color="red">*</font></td>
		  <td width="28%">
			 <select name="marriage" id="marriage">
				<option value="0">未婚</option>
				<option value="1">已婚</option>
			 </select>
		  </td>
		  <td width="12%" align="right">国家或地区<font color="red">*</font></td>
		  <td width="50%">
				<select name="d_province" id="d_province" onclick="_set_Citys(this.value)">
				  <option value="">省份</option> 
				</select>
				<select name="d_eparchy_code" id="d_eparchy_code" onclick="_set_Areas(this.value)">
				  <option value="">地级市</option> 
				 </select>
				<select name="d_city_code" id="d_city_code" style="display:inline" >
				 <option value="">市、县级市、县</option> 
				</select>
				<input name="area_attr" id="area_attr" type="hidden" value="" />   
		  </td>
		</tr>

		<tr>
		  <td align="right" width="20%">证件类型<font color="red">*</font></td>
		  <td width="28%">
			 <select name="cert_type" id="cert_type">
				<%=cert_type%>
			 </select>
		  </td>
		  <td width="12%" align="right">证件号码<font color="red">*</font></td>
		  <td width="50%">
			 <input type="text" name="cert_number" id="cert_number" size="30" maxlength="50" />	  
		  </td>
		</tr>

		<tr>
		  <td align="right" width="20%">海外工作/学习经历:</td>
		  <td width="28%">
			 <input type="radio" name="oversea" value="0" />有
			 <input type="radio" name="oversea" value="1" />无
		  </td>
		  <td width="12%" align="right">政治面貌:</td>
		  <td width="50%">
			 <select name="political" id="political">
				<%=political%>
			 </select>  
		  </td>
		</tr>

		<tr>
		  <td align="right" width="20%">电子邮箱<font color="red">*</font></td>
		  <td width="28%">
			 <input type="text" name="email" id="email" size="30" maxlength="60" />	  
		  </td>
		  <td width="12%" align="right">联系方式<font color="red">*</font></td>
		  <td width="50%">
			<input type="text" name="frist_contact" id="frist_contact" size="30" maxlength="50" />	   
		  </td>
		</tr>

		<tr>
			<td align="right" width="20%">
				 户口所在地<font color="red">*</font>
			</td>
			<td width="80%" colspan="3">
				<select name="h_province" id="h_province" onclick="setCitys(this.value)">
				  <option value="">省份</option> 
				</select>
				<select name="h_eparchy_code" id="h_eparchy_code" onclick="setAreas(this.value)">
				  <option value="">地级市</option> 
				 </select>
				<select name="h_city_code" id="h_city_code" style="display:inline" >
				 <option value="">市、县级市、县</option> 
				</select>
				<input name="account_location" id="account_location" type="hidden" value="" />   
			</td>
		</tr>

		<tr>
			<td align="right" width="20%">
				 现居住地址<font color="red">*</font>
			</td>
			<td colspan="3">
				  <input type="text" name="address" id="address" size="62" maxlength="200" />
			 </td>
		</tr>

		<tr>
			<td align="right" width="20%">
				 通信地址
			</td>
			<td colspan="3">
				  <input type="text" name="mail_addr" id="mail_addr" size="62" maxlength="200" />
			 </td>
		</tr>

		<tr>
		  <td align="right" width="20%">邮政编码</td>
		  <td width="28%">
			 <input type="text" name="post_code" id="post_code" size="30" maxlength="10" />	  
		  </td>
		  <td width="12%" align="right">主页/博客:</td>
		  <td width="50%">
			<input type="text" name="blog" id="blog" size="30" maxlength="100" />	   
		  </td>
		</tr>
		
		<tr>
			<td  colspan="4">
		   &nbsp;&nbsp;<img src="/program/admin/images/infotip.gif" border="0">&nbsp;&nbsp;
		   <span style="font-size:14px;font-weight:bold;">最高学历教育背景（<font color="red">*</font>为必填项）</span>			
		   </td>
		</tr>

		<tr>
			<td align="right" width="20%">
				 时&nbsp;&nbsp;&nbsp;&nbsp;间<font color="red">*</font>
			</td>
			<td colspan="3">
				  <input type="text" class="Wdate" name="start_date" id="start_date" onclick="WdatePicker({maxDate:'#F{$dp.$D(\'end_date\',{d:-1})}',readOnly:true})" />
				  <input type="text" class="Wdate" name="end_date" id="end_date" onclick="WdatePicker({minDate:'#F{$dp.$D(\'start_date\',{d:1})}',readOnly:true})" />
			 </td>
		</tr>

		<tr>
			<td align="right" width="20%">
				 学校名称<font color="red">*</font>
			</td>
			<td colspan="3">
				  <input type="text" name="college_name" id="college_name" size="62" maxlength="100" />
			 </td>
		</tr>
		
		<tr>
		  <td align="right" width="20%">专业名称<font color="red">*</font></td>
		  <td width="28%">
			 <input type="text" name="specialty" id="specialty" size="30" maxlength="10" />	  
		  </td>
		  <td width="12%" align="right">学历/学位<font color="red">*</font></td>
		  <td width="50%">
			<%=degree%>	   
		  </td>
		</tr>

		<tr>
			<td  colspan="4">
		   &nbsp;&nbsp;<img src="/program/admin/images/infotip.gif" border="0">&nbsp;&nbsp;
		   <span style="font-size:14px;font-weight:bold;">自我评价（<font color="red">*</font>为必填项）</span>			
		   </td>
		</tr>
		
		<tr>
			<td align="right" width="20%">
				 标&nbsp;&nbsp;&nbsp;&nbsp;题<font color="red">*</font>
			</td>
			<td colspan="3">
				  <input type="text" name="self_title" id="self_title" size="62" maxlength="100" />
			 </td>
		</tr>

		<tr>
			<td align="right" width="20%">
				 内&nbsp;&nbsp;&nbsp;&nbsp;容<font color="red">*</font>
			</td>
			<td colspan="3">
				<textarea name="self_content" id="self_content" onKeyDown= "textCounter(this.form.self_content,300); " onKeyUp= "textCounter(this.form.self_content,300);" cols="100" rows="6"></textarea>
			</td>
		</tr>
		

		

		<tr>
			<td  colspan="4">
		   &nbsp;&nbsp;<img src="/program/admin/images/infotip.gif" border="0">&nbsp;&nbsp;
		   <span style="font-size:14px;font-weight:bold;">求职意向（<font color="red">*</font>为必填项）</span>			
		   </td>
		</tr>

		<tr>
			<td align="right" width="20%">
				期望工作性质<font color="red">*</font>				
			</td>
			<td width="80%" colspan="5">
				  <%=q_work_kind%>
			</td>
		</tr>

		<tr>
			<td align="right" width="20%">
				期望工作地区<font color="red">*</font>				
			</td>
			<td width="80%" colspan="5">
				<select name="q_province" id="q_province" onclick="set_Citys(this.value)">
				  <option value="">省份</option> 
				</select>
				<select name="q_eparchy_code" id="q_eparchy_code">
				  <option value="">城市</option> 
				 </select>
				<input name="q_work_addr" id="q_work_addr" type="hidden" value="" />   
			</td>
		</tr>

		<tr>
			<td align="right" width="20%">
				期望从事职业<font color="red">*</font>				
			</td>
			<td width="80%" colspan="5">
				<select name="q_work_career" id="q_work_career" style="width:200px" >
					<option value="">请选择</option>
				    <%=q_work_career%>
				</select>
			</td>
		</tr>

		<tr>
			<td align="right" width="20%">
				期望从事行业<font color="red">*</font>				
			</td>
			<td width="80%" colspan="5">
				<select name="q_work_biz" id="q_work_biz" style="width:200px">
					<option value="">请选择</option>
				    <%=select%>
				</select>
			</td>
		</tr>
		
		<tr>
			<td align="right" width="20%">
				期望月薪（税前）<font color="red">*</font>				
			</td>
			<td width="80%" colspan="5">
				<select name="q_work_salary" id="q_work_salary">
				  <%=salary%>
				</select>
			</td>
		</tr>

		<tr>
			<td align="right" width="20%">
				上岗情况<font color="red">*</font>				
			</td>
			<td width="80%" colspan="5">
				<%=posts%>
			</td>
		</tr>

		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="1836" />
				<input type="hidden" name="jumpurl" value="/program/admin/resume/addLanguage.jsp" />
				<input type="hidden" name="cust_id" id="cust_id" value="<%=cust_id%>" />
				<input type="hidden" name="resume_id" id="resume_id" value="<%=resume_id%>" />
				<input type="hidden" name="user_id" id="user_id" value="<%=publish_user_id%>" />
				<input type="hidden" name="is_work" id="is_work" value="0" />
				<input type="hidden" name="state_code" id="state_code" value="a" />
				<input type="button" class="button_css" name="Submit3" value="保存并下一步" style="cursor:pointer;" onclick="return subForm()" />&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="window.location.href='index.jsp';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
<script>setProvince();set_Province();_set_Province()</script>
